package br.com.saeng2D.formulario.caixa;

import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;

import br.com.saeng2D.util.Util;

public abstract class ControleAnimado extends JPanel implements ActionListener {
	private static final long serialVersionUID = 1L;
	protected final String simboloGrau = Util.getString("label_simbolo_grau");
	protected ContainerAnimado containerAnimado;
	protected JLabel labelTitulo;
	protected Dialogo dialogo;
	
	public ControleAnimado(String tituloOjetoAnimado, ContainerAnimado containerAnimado, Dialogo dialogo) {
		this.dialogo = dialogo;
		labelTitulo = new JLabel(tituloOjetoAnimado);
		this.containerAnimado = containerAnimado;
		setBorder(BorderFactory.createRaisedBevelBorder());
	}

	public abstract void registrarEvento();

	public abstract void registrarEventoVariavelForca();

	public abstract void montarLayout(int x, int y, int largura, int altura);

	public ContainerAnimado getContainerAnimado() {
		return containerAnimado;
	}
	
	public Dialogo getDialogo() {
		return dialogo;
	}
}